﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpDemo.Entity
{
    [Table("Course")]
    public class Course : Entity<long>
    {
        /// <summary>
        /// 表 id
        /// </summary>
        public override long Id { get; set; }
        /// <summary>
        /// 课程编号
        /// </summary>
        [Required]
        [StringLength(128)]
        public string CourseCode { get; set; }
        /// <summary>
        /// 课程名称
        /// </summary>
        [Required]
        [StringLength(256)]
        public string CourseName { get; set; }
        public Course() { }
    }
}
